﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace RM2012Mobile
{
    public partial class frmCustomer : Form
    {
        RM2012Service.RM2012Service objService = new RM2012Service.RM2012Service();
        DataSet ds;

        public frmCustomer()
        {
            InitializeComponent();
        }

        private void frmTablesBooked_Load(object sender, EventArgs e)
        {
            RefreshGrid();
        }

        public void RefreshGrid()
        {
            ds = new DataSet();
            ds = objService.GetAllCustomer();
            gridCustomer.DataSource = ds.Tables[0];
        }

        private void menuItemRefresh_Click(object sender, EventArgs e)
        {
            RefreshGrid();
        }

        private void menuItemClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}